﻿<!--历史考试-->
<div class="xueyuanduan_renwulist_top" ng-controller="stuExamHistoryList">
<style type="text/css">
    /*选中样式*/
      .xueyuanduan_renwulist_title span{
        display: inline-block;
        cursor: pointer;
        padding: 0 10px;
    }
    .xueyuanduan_renwulist_title .active
    {
        font-weight: bold;
        color: #666;
        border-bottom: 3px #39f solid;
        text-align: center;
        margin: 0 10px;
    }
</style>
<a ng-href="{{commonUrl}}" id="commonHref" target="_blank"></a>
    <div class="member_main">
       <h5>
            <span ng-bind="'historyExam'|T">考试历史</span></h5>

        <!-- <div class="xueyuanduan_renwulist_title" style="padding-bottom: 0;">
            <span ng-click="selTabList(1)" ng-class="{'active': showTable == 1}" class="active" style="">内部成绩</span>
            <span ng-click="selTabList(2)" ng-class="{'active': showTable == 2}" class="" style="">外部成绩</span>
        </div> -->
        <div style="padding: 5px 15px;" ng-if="showTable == 1">
            <table class="tab" style="border: 0;">
                <!-- title -->
                <thead>
                    <tr>
                        <td ng-bind="'ExaminationPaperName'|T">
                            试卷名
                        </td>
                        <td ng-bind="'examTime'|T">
                            考试时间
                        </td>
                        <td ng-bind="'fraction'|T">
                            分数
                        </td>
                         <td>
                           是否合格
                        </td>
                        <td ng-bind="'subject'|T" ng-if="false">
                            题目
                        </td>
                        <td ng-bind="'difficulty'|T" ng-if="false">
                            难度
                        </td>
                        <td ng-bind="'operation'|T">
                            操作
                        </td>
                    </tr>
                </thead>
                <!-- context -->
                <tbody>
                    <tr ng-if="examHistoryList.length<=0 && !examHistoryLoading">
                        <td colspan="5">
                            <center style="margin: 100px auto;">
                                <img src="/images/null/null.png" />
                                <div style="font-size: 30px; color: #a3a3a3;" ng-bind="'Null' | T">
                                </div>
                            </center>                            
                        </td>
                    </tr>
                    <!--loading-->
                    <tr ng-if="examHistoryLoading">
                        <td  colspan="5">
                            <loading isloading="examHistoryLoading" ng-if="examHistoryLoading"></loading>  
                        </td>
                    </tr>
                    <tr ng-repeat="item in examHistoryList" ng-if="examHistoryList.length > 0">
                        <td>
                            <a href="" ng-bind="item.paperName">2017年学术本科第一次模式考试</a>
                        </td>
                        <td ng-bind="item.scoreTime">
                            2015-15-45 12:00:12
                        </td>
                        <!-- ng-bind="item.score"-->
                        <td>
                            {{switchs?'--':item.score}}
                        </td>     
                        <td ng-bind="item.ispass==0?'合格':'不合格'">
                            90分
                        </td>                    
                        <td>
                            <a ng-if="!switchs" class="btn queding" ng-bind="'see'|T" ng-click="openUrlLink(item)">查看</a>
                        </td>
                    </tr>                    
                    <!-- 加载更多数据 -->
                    <tr ng-click="nextGetExamHistoryList()" ng-if="examHistoryList.length < listCount && !examHistoryLoading && listCount != 0">
                        <td colspan="5" style="text-align: center; cursor:pointer;"> <i class="iconfont">&#xec50;</i>{{'loadMoreData'|T}} </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!--外部成绩-->
        <div style="padding: 5px 15px;" ng-if="showTable == 2">
            <table class="tab" style="border: 0;">
                <!-- title -->
                <thead>
                    <tr>
                        <td ng-bind="'ExaminationPaperName'|T">
                            试卷名
                        </td>
                        <td>
                            录入日期
                        </td>
                        <td ng-bind="'fraction'|T">
                            分数
                        </td>
                        <td>
                            及格分
                        </td>
                         <td>
                           是否合格
                        </td>
                        
                    </tr>
                </thead>
                <!-- context -->
                <tbody>
                    <tr ng-if="externalList.length<=0 && !externalLoading">
                        <td colspan="5">
                            <center style="margin: 100px auto;">
                                <img src="/images/null/null.png" />
                                <div style="font-size: 30px; color: #a3a3a3;" ng-bind="'Null' | T">
                                </div>
                            </center>                            
                        </td>
                    </tr>
                    <!--loading-->
                    <tr ng-if="externalLoading">
                        <td  colspan="5">
                            <loading isloading="externalLoading" ng-if="externalLoading"></loading>  
                        </td>
                    </tr>
                    <tr ng-repeat="item in externalList" ng-if="externalList.length > 0">
                        <td>
                            <a href="" ng-bind="item.externalName"></a>
                        </td>
                        <td ng-bind="item.createDate">
                        </td>
                        <td>
                            {{switchs?'--':item.score}}
                        </td>   
                        <td  ng-bind="item.passScore"> 
                        </td>  
                        <td ng-bind="item.ispass?'合格':'不合格'">
                        </td>                    
                        
                    </tr>                    
                    <!-- 加载更多数据 -->
                    <tr ng-click="nextGetExternalHistoryList()" ng-if="externalList.length < eparams.listCount && !externalLoading && eparams.listCount != 0">
                        <td colspan="5" style="text-align: center; cursor:pointer;"> <i class="iconfont">&#xec50;</i>{{'loadMoreData'|T}} </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
